<?php

class MyController{
	/**
	 * The name of the current module.
	 */
	public $module = 'PaOrder';
	/**
	 * The name of the current action.
	 */
	public $action = 'index';
	
	/**
	 * The id of the current record.
	 */
	public $record = '';
	
	/**
	 * This can be set from the application to tell us whether we have authorization to 
	 * process the action. If this is set we will default to the noaccess view.
	 */
	public $hasAccess = true;
	
	

	
	
	/**
	 * Called from SugarApplication and is meant to perform the setup operations
	 * on the controller.
	 *
	 */
	public function setup($module = ''){
	//todo
	}
	
	
	/**
	 * This method is called from SugarApplication->execute and it will bootstrap the entire controller process
	 */
	final public function execute(){
	//todo
	}
	
	/**
	 * Meant to be overridden by a subclass and allows for specific functionality to be
	 * injected prior to the process() method being called.
	 */
	public function preProcess()
	{}
	
	
	
	   /**
     * Checks to see if the requested entry point requires auth
     *
     * @param  $entrypoint string name of the entrypoint
     * @return bool true if auth is required, false if not
     */
    public function checkEntryPointRequiresAuth($entryPoint)
    {
        return false;
    }

	
}
?>